import request from '@/utils/request'

export function listPublish(params) {
  return request({
    url: '/publish/list',
    method: 'get',
    params
  })
}

export function detailPublish(id) {
  return request({
    url: '/publish/detail',
    method: 'get',
    params: { id }
  })
}

export function handle(id, status) {
  return request({
    url: '/publish/handle',
    method: 'post',
    params: { id, status }
  })
}
export function deletePublish(id) {
  return request({
    url: '/publish/delete',
    method: 'post',
    params: { id }
  })
}